package com.smh.ZongHeLianXi;

public class Test2 {
    public static void main(String[] args) {

        System.out.println(getNum(6));


    }
    public static int getNum(int month){
        if (month<3){
            return 1;
        }else {
            return getNum(month-1)+getNum(month-2);
        }
    }
}
